package org.com.yz.dal.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wzc123
 * @since 2018-12-14
 */
@TableName("download_info")
public class DownloadInfo extends Model<DownloadInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 渠道
     */
    private String channel;
    /**
     * 下载地址
     */
    @TableField("download_url")
    private String downloadUrl;
    /**
     * 对账单日期
     */
    @TableField("bill_date")
    private String billDate;
    /**
     * 创建日期
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改日期
     */
    @TableField("update_time")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMchNo() {
        return mchNo;
    }

    public void setMchNo(String mchNo) {
        this.mchNo = mchNo;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getBillDate() {
        return billDate;
    }

    public void setBillDate(String billDate) {
        this.billDate = billDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public DownloadInfo(String mchNo, String channel, String downloadUrl, String billDate, Date createTime, Date updateTime) {
        this.mchNo = mchNo;
        this.channel = channel;
        this.downloadUrl = downloadUrl;
        this.billDate = billDate;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    public DownloadInfo() {
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DownloadInfo{" +
        "id=" + id +
        ", mchNo=" + mchNo +
        ", channel=" + channel +
        ", downloadUrl=" + downloadUrl +
        ", billDate=" + billDate +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
